<%@ page language="java"
	import="java.util.ArrayList"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>admin/basicInfo/customers/" />
		<link href="../../../css/skin.css" rel="stylesheet" type="text/css" />
		<SCRIPT type="text/javascript" src="../../../js/jquery.js"></SCRIPT>
		<SCRIPT type="text/javascript" src="../../../js/incrline_c.js"></SCRIPT>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}

-->
.tdinput {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	height: 22px;
	border: 0;
	width: 80px;
}
</style>
<script type="text/javascript">
 function changeState(obj, checkList) {
		if(obj.checked == true) {
			if(checkList != null && checkList.length == null) {
				checkList.checked = true;
			}
			for(var i=0; i<checkList.length; i++) {
				checkList[i].checked = true;
			}
		}
		else {
			if(checkList != null && checkList.length == null) {
				checkList.checked = false;
			}
			for(var i=0; i<checkList.length; i++) {
				checkList[i].checked = false;
			}
		}
}
</script>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top"
					background="../../../images/mail_leftbg.gif">
					<img src="../../../images/left-top-right.gif" width="17"
						height="29" />
				</td>
				<td valign="top" background="../../../images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									客户添加
								</div>
							</td>

						</tr>
					</table>
				</td>
				<td width="16" valign="top"
					background="../../../images/mail_rightbg.gif">
					<img src="../../../images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle" background="../../../images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td height="26" background="../../../images/newlinebg3.gif">

								<table width="98%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td align="center">
												<a href="Customer-list.action" class="coolbg">客户列表</a>
												<a href="Customer-add.jsp" class="coolbg">增加客户信息</a>
												<a href="Customer-search.jsp" class="coolbg">查询客户信息</a>
										</td>
									</tr>
								</table>
								<form action="Customer-add.action">
									<table width="98%" border="0" cellpadding="2" cellspacing="1"
										bgcolor="#D1DDAA" align="center" style="margin-top: 8px" id="datatable">
										<tr bgcolor="#E6EDF2">
											<td height="24" colspan="12"
												background="../../../images/tbg.gif">
												&nbsp;
												<input type="checkbox" class="coolbg" name="all"
													onclick="changeState(this, selectedList);" value="check" />
												<label class="coolbg">
													全选
												</label>
												&nbsp;
												<input class="coolbg1" type="button" value="添加一行" id="addline">|
												<input class="coolbg1" type="button" value="删除一行" id="removeline">
											</td>
										</tr>
										<tr align="center" bgcolor="#EEF4EA" height="22">
											<td width="4%">
												选择
											</td>
											<td width="8%">
												名称 <span style="color:red">*</span>
											</td>
											<td width="8%">
												简称
											</td>
											<td width="8%">
												地址
											</td>
											<td width="8%">
												电话
											</td>
											<td width="8%">
												E-mail
											</td>
											<td width="8%">
												邮政编码
											</td>
											<td width="10%">
												开户行
											</td>
											<td width="8%">
												账号
											</td>
											<td width="8%">
												传真
											</td>
											<td width="8%">
												联系人
											</td>
											<td width="10%">
												联系电话
											</td>
										</tr>

										<tr align='center' bgcolor="#FFFFFF"
											onMouseMove="javascript:this.bgColor='#FCFDEE';"
											onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
											<td>
												<input type="checkbox" id="selectedList" name="selectedList" value="0"
													class="np">
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].customer_name" />
											</td>
											<td align="left">
												<input type="text" class="tdinput" name="customers[0].short_name" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].address" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].tel" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].email" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].postalcode" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].bank_name" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].bank_account" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].fax" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].linkman_name" />
											</td>
											<td>
												<input type="text" class="tdinput" name="customers[0].linkman_tel" />
											</td>
										</tr>
										<tr bgcolor="#FAFAF1">
											<td height="28" colspan="12">
												<input type="submit" value="提交" class="coolbg" />
											</td>
										</tr>
										<tr align="right" bgcolor="#EEF4EA">
											<td height="36" colspan="12" align="center">

												<!--换页-->
											</td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>
				</td>
				<td background="../../../images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="bottom" background="../../../images/mail_leftbg.gif">
					<img src="../../../images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td background="../../../images/buttom_bgs.gif">
					<img src="../../../images/buttom_bgs.gif" width="17" height="17">
				</td>
				<td valign="bottom" background="../../../images/mail_rightbg.gif">
					<img src="../../../images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>
	</body>
</html>
